<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> 
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>  
<center>
<fieldset> 
    <legend>Alterar Senha:</legend>
<table>

    <form:form commandName="model" action="index" method="post">
    <tr>
        <td>Senha Atual: </td>
        <td><form:password path="senhaAtual" cssErrorClass="ui-state-error" cssStyle="width:100%"  maxlength="40"/> </td>
        <td> <form:errors path="senhaAtual" cssClass="ui-state-error ui-corner-all" cssStyle="padding: 0 .7em; color: red; font-weight:bold;"/></td>
    </tr>
    <tr>
        <td>Nova Senha : </td>
        <td><form:password path="novaSenha" cssErrorClass="ui-state-error"  cssStyle="width:100%" maxlength="40" /> </td>
        <td><form:errors path="novaSenha" cssClass="ui-state-error ui-corner-all" cssStyle="padding: 0 .7em; color: red; font-weight:bold;"/></td>   
     </tr>
     <tr>
        <td>Confirma Nova Senha : </td>
        <td><form:password path="confirmaNovaSenha"  cssErrorClass="ui-state-error"  cssStyle="width:100%" maxlength="40" /> </td>
        <td><form:errors path="confirmaNovaSenha" cssClass="ui-state-error ui-corner-all" cssStyle="padding: 0 .7em; color: red; font-weight:bold;"/></td>   
     </tr>
     <tr>
         <td colspan="3"> <button name="" value="Save" type="submit" class="save"/>Alterar</button></td>
     </tr>
</form:form>
</table>
</fieldset>
</center>
